package com.pms.service;

import java.util.ArrayList;
import java.util.List;

import com.pms.dao.ContactDao;
import com.pms.entity.Contact;
import com.pms.entity.Record;

public class ContactService {
	
	ContactDao contactDao = new ContactDao();
	
	public List<Contact> findForList(String projectId) {
		return contactDao.findForList(projectId);
		
	}

	public Contact findContactById(String contactId) {
		
		return contactDao.findContactById(contactId);
	}

	public void newContact(String name, String company, String telephone,
			String phone, String email, String address, String index,
			String bolgType,String username, String describe, String projectId ) {
		contactDao.newContact(name,company,telephone,phone,email,address,index,bolgType,username,describe,projectId);
		
	}

	public void editContact(String name, String company, String telephone,
			String phone, String email, String address, String index,
			String bolgType, String username, String describe, String id) {

		contactDao.editContact(name,company,telephone,phone,email,address,index,bolgType,username,describe,id);
	}
	public void deleteById(String contactId) {
		contactDao.deleteById(contactId);
		
	}
}
